﻿using BaiTu.Framework.Core.Interfaces;
using BaiTu.IEventServices;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.TestIng.Domain
{
    public class TestEvebt : IEvent
    {
        public string Name { get; set; }
    }

    public class Hello
    {
        public string Name { get; set; }
    }
    public class HelloResponse
    {
        public string Result { get; set; }
    }

    public class FF
    {
        public static void WriteLog(int ll, string message)
        {
            if (ll == 1)
            {
                if (File.Exists("1.txt") == false)
                {
                    File.CreateText("1.txt");
                }
                using (StreamWriter writer = new StreamWriter("1.txt", true))
                {

                    writer.WriteLine(message);
                    if (writer != null)
                    {
                        writer.Flush();
                        writer.Close();

                    }
                }
            }
            else
            {
                if (File.Exists("2.txt") == false)
                {
                    File.CreateText("2.txt");
                }
                using (StreamWriter writer = new StreamWriter("2.txt", true))
                {
                    writer.WriteLine(message);
                    if (writer != null)
                    {
                        writer.Flush();
                        writer.Close();
                    }
                }
            }


        }

    }
}
